package com.shop.controller;

import com.shop.pojo.ums.Ums_Member_Receive_Address;
import com.shop.service.Ums_Member_Receive_Address_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/member_address")
public class Ums_Member_Receive_Address_Controller {

    @Autowired
    private Ums_Member_Receive_Address_Service ums_member_receive_address_service;



    @GetMapping("/getMemberIdAddress/{member_id}")
    public List<Ums_Member_Receive_Address> getMemberIdAddress(@PathVariable("member_id") Long member_id){
        return ums_member_receive_address_service.getMemberIdAddress(member_id);
    }

}
